package com.sweet.mealon.face.daily.lock.concurence.countdown;

import lombok.AllArgsConstructor;

import java.util.concurrent.CountDownLatch;

/**
 * faceDaily
 *
 * @Author: craizer.huang
 * @Date: 2021/5/1 8:28
 **/
@AllArgsConstructor
public class CountDownThread implements Runnable {
    /**
     * 计数器
     */
    private CountDownLatch countDownLatch;
    public void run() {
        System.out.println(String.format("%s run ",Thread.currentThread().getName()));
        countDownLatch.countDown();
    }
}
